home *** CD-ROM | disk | FTP | other *** search
Wrap
global gbQT, gbPC, gRootPath on checkQT if QuickTimeVersion() < 4 then atitle = "Quicktime Not Detected" amoveable = 1 amessage = "QuickTime version 4 or higher is required to view the trailer video on this CD-ROM. Do you wish to install QuickTime now?" & RETURN & "(Select 'Yes' to install QuickTime, or 'No' to continue without trailer access.)" abuttons = #YesNo aicon = #question adefault = 6 alertObj = new(xtra("MUI")) alertInitList = [#Buttons: abuttons, #title: atitle, #Message: amessage, #movable: amoveable, #default: adefault, #Icon: aicon] if objectp(alertObj) then result = alert(alertObj, alertInitList) case result of 1: installQT() 2: gbQT = 0 otherwise: halt() end case else alert("No MUI Xtra") end if else gbQT = 1 end if end on installQT if gbPC then installPath = gRootPath & "QuickTime\QuickTimeInstaller.exe" else installPath = gRootPath & "QuickTime 5 Installer:QuickTime Installer" end if open(installPath) halt() end